@import "../config.scss";

.b-personal-banner {
  height: 576px;
  padding-top: 360px;
  background: url(../../assets/img/personal-banner.jpg) no-repeat top center;
  background-size: 1920px 360px;
  background-color: #22303a;

  .personal-content {
    height: 216px;
    background-color: #fff;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.07);

    .content-center {
      width: 1200px;
      margin: 0 auto;

      .avatar {
        width: 50px;
        height: 50px;
        background-color: $defaultColor;
        border-radius: 50%;
        margin: 0 auto;
        transform: translate3d(0, -25px, 0)
      }

      .user-name {
        text-align: center;
        font-size: 18px;
        color: #333;
        transform: translateY(-15px);
      }

      .switch-nav {
        height: 70px;
        line-height: 70px;
        margin-top: 75px;
        text-align: center;
        .nav-item {
          display: inline-block;
          margin-left: 100px;
          font-size: 26px;
          color: #000;
          cursor: pointer;
          &:first-child {
            margin-left: 0;
          }
          &:after {
            display: block;
            content: "";
            height: 3px;
            background-color: #000;
            transform: translateY(0) scaleX(0);
            opacity: 0;
            transition: ease-in-out 0.25s;
          }
        }
        .isActive:after {
          opacity: 1;
          transform: translateY(-3px) scaleX(1);
        }
      }
    }
  }
}

// 内容盒子 - 账户/KYC/钱包/交易
.b-person_content__box {
  width: 1200px;
  min-height: 400px;
  margin: 30px auto 0;
  box-shadow: 0px 3px 6px 2px rgba(0, 0, 0, 0.07);

  // 我的账户
  .balance_title {
    font-size: 18px;
    color: #333;
    padding: 50px 0 0 50px;
  }

  .balance_info {
    font-size: 48px;
    color: #000;
    padding-left: 50px;
    margin-top: 20px;
  }

  .balance_usd {
    font-size: 18px;
    color: #999;
    padding-left: 50px;
    margin-top: 5px;
    span {
      font-size: 32px;
    }
  }
}

// KYC认证
.kyc {
  padding: 10px 0 40px 50px;

  .title {
    font-size: 18px;
    color: #333;
    margin-top: 40px;
  }

  .title-small {
    font-size: 12px;
    color: #333;
    margin-top: 4px;
  }

  .buttons {
    margin-top: 20px;

    input[type="radio"] {
      display: none;
    }
    input[type="radio"] + span {
      width: 150px;
      height: 44px;
      display: inline-block;
      vertical-align: top;
      line-height: 44px;
      text-align: center;
      color: #333;
      font-size: 22px;
      border: 1px solid #bbb;
      transition: color ease-in 0.35s;
    }

    input[type="radio"]:checked + span {
      background-color: #333;
      color: #fff;
    }
  }

  .input-box {
    margin-top: 40px;

    .input-item {
      display: inline-block;
      margin-right: 20px;
      width: 250px;
      font-size: 18px;
      color: #333;

      input {
        width: 100%;
        height: 45px;
        margin-top: 4px;
        border: 1px solid #bbb;
        padding-left: 20px;
        font-size: 18px;
        color: #bbb;
        letter-spacing: 1px;
        outline: none;
        &:focus {
          border: 1px solid $defaultColor;
        }
      }
    }
    .card {
      width: 520px;
      margin-left: 40px;
    }
  }

  .upload-box {
    margin-top: 20px;
    input[type="file"] {
      display: none;
    }
    input[type="file"] + .upload-button {
      display: inline-block;
      width: 520px;
      height: 320px;
      background-color: #f7f7f7;
      text-align: center;
      font-size: 18px;
      color: #333;
      padding-top: 40px;
      cursor: pointer;
    }
    .prew-rect {
      width: 340px;
      height: 200px;
      border: 1px dashed #bbb;
      border-radius: 4px;
      margin: 20px auto 0;

      img {
        display: block;
        width: 60px;
        margin: 50px auto 0;
      }
      .button-text {
        font-size: 22px;
        margin-top: 10px;
        color: $defaultColor;
      }
    }

    .second {
      margin-left: 60px;
    }
  }

  .submit-button {
    width: 150px;
    display: block;
    height: 44px;
    margin: 60px auto 0;
    background: $defaultColor;
    border: none;
    outline: none;
    font-size: 20px;
    color: #fff;
    &:active {
      opacity: 0.8;
    }
  }
}

// 我的钱包
.wallet {
  padding: 50px 0 40px 50px;

  .title {
    font-size: 18px;
    color: #333;
  }

  input[type="radio"] {
    display: none;
  }
  input[type="radio"] + span {
    display: inline-block;
    width: 150px;
    height: 44px;
    line-height: 44px;
    border: 1px solid #bbb;
    color: #333;
    margin-right: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 22px;
    transition: color ease-out 0.35s;
  }
  input[type="radio"]:checked + span {
    background-color: #333;
    color: #fff;
  }

  .wallet-info {
    font-size: 18px;
    color: #666;
    margin-top: 40px;
    letter-spacing: 1px;
  }

  .input-item {
    margin-top: 30px;
    width: 520px;
    .item-label {
      font-size: 18px;
      color: #333;
    }
    input {
      display: block;
      width: 100%;
      height: 45px;
      outline: none;
      border: 1px solid #bbb;
      color: #333;
      font-size: 18px;
      margin-top: 4px;
      padding-left: 20px;
    }
    input::-webkit-input-placeholder {
      color: #bbb;
    }
    input::-moz-placeholder {
      color: #bbb;
    }
    input:-moz-placeholder {
      color: #bbb;
    }
    input:-ms-input-placeholder {
      color: #bbb;
    }
  }

  button {
    display: block;
    width: 150px;
    height: 44px;
    border: 0;
    outline: none;
    font-size: 20px;
    letter-spacing: 2px;
    color: #fff;
    margin: 60px auto 0;
    background: $defaultColor;
    cursor: pointer;
    &:active {
      opacity: 0.8;
    }

    &:disabled {
      background: #bbb;
      cursor: not-allowed;
    }
  }
}

// 交易
.business {
  padding: 50px;
  font-size: 18px;

  .title {
    color: #333;
  }

  .business-info {
    color: #666;
    line-height: 28px;
    letter-spacing: 1px;
    margin-top: 20px;
  }
}
